#pragma once
#include "stdafx.h"

using namespace sf;

class ChickenDefGame;
class Egg
{

	AniSprite* m_aniFlying;
	AniSprite* m_aniExplode;
	AniSprite* m_aniCurrent;
	ChickenDefGame *game;

	Vector2f dir;

	int state;
	float speed;
public:
	void Reset(Vector2f pos,Vector2f _dir);
	void Update();
	void Draw(RenderWindow *wnd);
	bool IsActive();
	void Destroy();
	Egg(ChickenDefGame *_game);
	~Egg(void);
};

